/**
 * Copyright 2009 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.xume.raob.extensions.jaxb;

import java.io.File;
import java.io.OutputStream;
import java.io.Writer;

import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamWriter;
import javax.xml.transform.Result;

import org.w3c.dom.Node;
import org.xml.sax.ContentHandler;
import org.xume.raob.annotations.PostBuild;


/**
 * @author Johan Siebens
 */
public interface JaxbBuilder {

	@PostBuild(JaxbExtension.class)
	String marshal();
	
	@PostBuild(JaxbExtension.class)
	void marshal(ContentHandler handler);

	@PostBuild(JaxbExtension.class)
	void marshal(File output);

	@PostBuild(JaxbExtension.class)
	void marshal(Node node);
	
	@PostBuild(JaxbExtension.class)
	void marshal(OutputStream os);
	
	@PostBuild(JaxbExtension.class)
	void marshal(Result result);
	
	@PostBuild(JaxbExtension.class)
	void marshal(Writer writer);
	
	@PostBuild(JaxbExtension.class)
	void marshal(XMLEventWriter writer);
	
	@PostBuild(JaxbExtension.class)
	void marshal(XMLStreamWriter writer);
	
}
